import service from '@/utils/request'

// @Tags SerialNumGen
// @Summary 创建序列号配置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SerialNumGen true "创建序列号配置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /serialNumGen/createSerialNumGen [post]
export const createSerialNumGen = (data) => {
  return service({
    url: '/serialNumGen/createSerialNumGen',
    method: 'post',
    data
  })
}

// @Tags SerialNumGen
// @Summary 删除序列号配置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SerialNumGen true "删除序列号配置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /serialNumGen/deleteSerialNumGen [delete]
export const deleteSerialNumGen = (params) => {
  return service({
    url: '/serialNumGen/deleteSerialNumGen',
    method: 'delete',
    params
  })
}

// @Tags SerialNumGen
// @Summary 批量删除序列号配置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除序列号配置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /serialNumGen/deleteSerialNumGen [delete]
export const deleteSerialNumGenByIds = (params) => {
  return service({
    url: '/serialNumGen/deleteSerialNumGenByIds',
    method: 'delete',
    params
  })
}

// @Tags SerialNumGen
// @Summary 更新序列号配置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SerialNumGen true "更新序列号配置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /serialNumGen/updateSerialNumGen [put]
export const updateSerialNumGen = (data) => {
  return service({
    url: '/serialNumGen/updateSerialNumGen',
    method: 'put',
    data
  })
}

// @Tags SerialNumGen
// @Summary 用id查询序列号配置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.SerialNumGen true "用id查询序列号配置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /serialNumGen/findSerialNumGen [get]
export const findSerialNumGen = (params) => {
  return service({
    url: '/serialNumGen/findSerialNumGen',
    method: 'get',
    params
  })
}

// @Tags SerialNumGen
// @Summary 分页获取序列号配置列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取序列号配置列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /serialNumGen/getSerialNumGenList [get]
export const getSerialNumGenList = (params) => {
  return service({
    url: '/serialNumGen/getSerialNumGenList',
    method: 'get',
    params
  })
}
